<%@ page language="java"
	import="java.util.*,bc.swim2.ejb.entity.RegisteredUser"
	contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Results</title>
<style>
@import url(css/main.css);
</style>
</head>
<body>
	<div id="allContainer">
		<h1 id="pageTitle">Search Help here</h1>
		<div id="singleContainer">
			<h1 id="listTitle">Results:</h1>
			<%
				List<RegisteredUser> users = null;
				users = (List<RegisteredUser>) request.getAttribute("userList");

				Iterator<RegisteredUser> it = users.iterator();
			%><table>
				<%
					while (it.hasNext()) {

						RegisteredUser ru = (RegisteredUser) (it.next());
						String ruFirstName = ru.getFirstName();
						String ruLastName = ru.getLastName();
						String ruEmail = ru.getEmail();
						int ruId = ru.getId();
				%>

				<tr>
					<td><%=ruFirstName%></td>
					<td><%=ruLastName%></td>
					<td><%=ruEmail%></td>
				</tr>
				<%
					}
				%>
			</table>
		</div>
	</div>
</body>
</html>